package cn.billho.popcache.core.api;

import cn.billho.popcache.core.model.CacheBean;

/**
 * 缓存核心接口
 */
public interface ICacheApi {

    CacheBean get(String region, String key);
    CacheBean get(String key);

    void set(String region, String key, CacheBean cacheBean);

    void set(String key, CacheBean cacheBean);

    long removeByRegionKey(String region, String key);

    long removeKey(String key);

    long removeRegions(String... regions);

    boolean isEnabled();

}
